PARSER=parser
HTTP_SERVER=http_server
DUG=debug
cc=g++

.PHONY:all
all:$(PARSER) $(DUG) $(HTTP_SERVER)

$(PARSER):parser.cpp
		$(cc) -o $@ $^ -lboost_system -lboost_filesystem -std=c++11
$(DUG):debug.cpp 
		$(cc) -o $@ $^ -std=c++11 -ljsoncpp
$(HTTP_SERVER):http_server.cpp 
		$(cc) -o $@ $^ -ljsoncpp -std=c++11 -lpthread

.PHONY:clean
clean:
		rm -f $(PARSER) $(DUG) $(HTTP_SERVER)
